/* 
 * 参与人员管理界面.
 */

import { Component, OnInit } from '@angular/core';
import { Member } from '../domain/Member';

import { RestService } from '../services/RestService';

@Component({
    selector: 'page-member',
    templateUrl: './member.component.html',
    styleUrls: ['./member.component.css']
})
export class MemberComponent implements OnInit{
	
	
	member : Member;
	
	members : Member [];
	
    constructor(private restService: RestService) { 
	}
	
	ngOnInit() {
		console.log("开始查询...");
		
        this.restService.getAllMembers()
			.then(result => {
				this.members = result;
			});
	}
	
	onRowSelect() {
		
	}
	
}

